package com.xytc.company.company_backend;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


/**
 * 如果不使用  MapperScan 注解指定 mapper 接口类定义的位置，将 由于TestController  中，如下代码 依赖 mapper接口实现类的注入，而导致抛出如下异常
 * @Autowired
 * private ITestMapper testMapper;
 *
 * Field testMapper in com.xytc.company.company_backend.adminEndPoint.controller.TestController required a bean of type 'com.xytc.company.company_backend.adminEndPoint.mapper.ITestMapper' that could not be found.
 *
 * The injection point has the following annotations:
 * 	- @org.springframework.beans.factory.annotation.Autowired(required=true)
 */
@MapperScan(basePackages = {"com.xytc.company.company_backend.adminEndPoint.mapper","com.xytc.company.company_backend.customerEndpoint.mapper"})
@SpringBootApplication
public class CompanyBackendApplication {

    public static void main(String[] args) {
        SpringApplication.run(CompanyBackendApplication.class, args);
    }

}
